* This file created Figure A1 
* Note: it requires propreity data to be created. We obtained the data from David Chan, who provided the required information on the distribution of wait times in a single US ED. Using these data we ran the below code.

use "$saveddata/USHosp_waittimes.dta", clear

scatter kdensity waittime, msymbol(o) connect(line) lcolor(black) mcolor(black) ///
	xmtick(0(10)600) xlab(0(60)600) ylab(0(0.05)0.2) graphregion(color(white)) ///
	ytitle("Number of patients (000s)") xtit("Waiting time (mins)") xline(240, lcolor(red) lpattern(shortdash))
	graph export "$results/figA1.pdf", as(pdf) replace
	